package com.gtja.beoms.controller;

import com.gtja.beoms.service.IFinanceService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Ghao
 * @date 2022/1/18
 */
@RequestMapping("archive")
@RestController
@RequiredArgsConstructor
public class ArchiveController {

    private final IFinanceService iFinanceService;

    @GetMapping("testArchive")
    public void testArchive() {
        String corpId = "ww63fff829c96e8e4a";
        String[] methodParams = {"ww63fff829c96e8e4a", "000000", "17371243085"};
        try {
            iFinanceService.syncFinance(corpId, methodParams);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

